﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KATS_Client.Client
{
    /// <summary>
    /// The progress of the current action
    /// </summary>
    public class FileActionProgress : EventArgs
    {
        /// <summary>
        /// The completed percentage of the current action
        /// </summary>
        public int PercentageComplete = 0;

        /// <summary>
        /// The current speed of the action
        /// </summary>
        public string Speed = string.Empty;
       
        /// <summary>
        /// The string for this object
        /// </summary>
        /// <returns>The string representation of this object</returns>
        public override string ToString()
        {
            string output = string.Format("{0}%  {1}", PercentageComplete, Speed);
            return output.Trim();
        }

        /// <summary>
        /// Create a FileActionProgress object
        /// </summary>
        /// <param name="PercentageComplete">The percentage complete</param>
        /// <param name="Speed">The speed string</param>
        public FileActionProgress(int PercentageComplete, string Speed)
        {
            this.PercentageComplete = PercentageComplete;
            this.Speed = Speed;
        }
    }
}
